package tech.yingchuan.blogs.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;
import tech.yingchuan.blogs.model.Acl;

@Data
@NoArgsConstructor
public class AclDto extends Acl {
    public static AclDto adapt(Acl acl) {
        AclDto dto = new AclDto();
        BeanUtils.copyProperties(acl, dto);
        return dto;
    }
}
